﻿<UserControl x:Class="SharePointCSVImporter.RuleEditors.StringReplaceRuleEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="150" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel>
            <TextBlock Margin="10" TextDecorations="Underline" FontSize="14" HorizontalAlignment="Center"  >String Replace</TextBlock>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition  />
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Right" Text="For CSV Value, replace text: "></TextBlock>
                <TextBox Grid.Column="1" Name="LookupText" MinWidth="100" TextChanged="LookupText_TextChanged" />

                <TextBlock Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" FontSize="14">OR</TextBlock>


                <StackPanel Grid.Row="3" HorizontalAlignment="Right" Orientation="Horizontal">
                    <TextBlock   Text="Replace #"></TextBlock>
                    <TextBox Name="NumOfChars" Typography.NumeralStyle="Normal" Width="20" TextChanged="NumOfChars_TextChanged" ToolTipService.ToolTip="Number of Characters" />
                    <TextBlock Text="of Characters from: "  />         
                </StackPanel>
                <ComboBox Name="TrimDiretionComboBox" Grid.Row="3" Grid.Column="1" SelectionChanged="TrimDiretionComboBox_SelectionChanged">
                    <ComboBoxItem IsSelected="True">
                        Left
                    </ComboBoxItem>
                    <ComboBoxItem>
                        Right
                    </ComboBoxItem>
                </ComboBox>

                <TextBlock Margin="0,10,0,0" HorizontalAlignment="Right" Grid.Row="4" Text="with text: "></TextBlock>
                <TextBox Margin="0,10,0,0" Grid.Row="4" Grid.Column="1" Name="ReplaceText" MinWidth="100" TextChanged="ReplaceText_TextChanged" />
             
            </Grid>
     
              
          
        </StackPanel>
       
    </Grid>
</UserControl>
